/*
 * timer_functions.h
 *
 * Created: 29.03.2013 12:11:34
 *  Author: Timmo
 */ 


#ifndef TIMER_FUNCTIONS_H_
#define TIMER_FUNCTIONS_H_

extern volatile uint16_t rtc_seconds;
extern volatile uint16_t display_standby_timer;

typedef struct{
	uint8_t second;   //enter the current time, date, month, and year
	uint8_t minute;
	uint8_t hour;
	uint8_t date;
	uint8_t month;
	uint16_t year;
}time_t;

extern time_t t;

void init_short_time_counter();
void waitms(uint16_t ms);
void stop_short_time_counter();
void init_RTC();
void reset_display_standbytimer();

void RTC_reset_timer();



#endif /* TIMER_FUNCTIONS_H_ */